﻿
using System;
using System.Collections;
namespace MVCFoto.Model
{
	/// <summary>
	/// 用户帐号
	/// </summary>
	public class UserInfo
	{
			private int m_userid;
			private string m_username;
			private string m_password;
			private string m_email;
			private short m_gender;
			private string m_avatar;
			private string m_userquote;
            private int m_privacy_info;
			private DateTime m_regdate;
			private DateTime m_lastlogin;
			private string m_regip;
			private string m_lastip;
            private long m_userquota = 0;
            private long m_quotaused = 0;
            
	
	
	#region 构造函数
		/// <summary>
		/// 构造函数
		/// </summary>
		public UserInfo()
		{
		
		}
		/// <summary>
		/// 构造函数
		/// </summary>
        public UserInfo(string userName, string password, string email, short gender, string avatar, string userQuote, int privacy_Info, DateTime regDate,string regIP)
		{
			this.m_username = userName;
		this.m_password = password;
		this.m_email = email;
		this.m_gender = gender;
		this.m_avatar = avatar;
		this.m_userquote = userQuote;
		this.m_privacy_info = privacy_Info;
		this.m_regdate = regDate;
        this.m_lastlogin = regDate;
		this.m_regip = regIP;
        this.m_lastip = regIP;
	
		}
	#endregion
	
	#region 属性

			/// <summary>
	/// 
	/// </summary>
	public int UserID
	{
		set{ this.m_userid = value;}
		get{ return this.m_userid;}
	}

			/// <summary>
	/// 
	/// </summary>
	public string UserName
	{
		set{ this.m_username = value;}
		get{ return this.m_username;}
	}

			/// <summary>
	/// 
	/// </summary>
	public string Password
	{
		set{ this.m_password = value;}
		get{ return this.m_password;}
	}

			/// <summary>
	/// 
	/// </summary>
	public string Email
	{
		set{ this.m_email = value.ToLower();}
		get{ return this.m_email;}
	}

			/// <summary>
	/// 
	/// </summary>
	public short Gender
	{
		set{ this.m_gender = value;}
		get{ return this.m_gender;}
	}

			/// <summary>
	/// 头像
	/// </summary>
	public string Avatar
	{
		set{ this.m_avatar = value;}
		get{ return this.m_avatar;}
	}

			/// <summary>
	/// 个性签名
	/// </summary>
	public string UserQuote
	{
		set{ this.m_userquote = value;}
		get{ return this.m_userquote;}
	}

			/// <summary>
	/// 个人资料隐私设置
	/// </summary>
    public int Privacy_Info
	{
		set{ this.m_privacy_info = value;}
		get{ return this.m_privacy_info;}
	}

			/// <summary>
	/// 
	/// </summary>
	public DateTime RegDate
	{
		set{ this.m_regdate = value;}
		get{ return this.m_regdate;}
	}

			/// <summary>
	/// 
	/// </summary>
	public DateTime LastLogin
	{
		set{ this.m_lastlogin = value;}
		get{ return this.m_lastlogin;}
	}

			/// <summary>
	/// 
	/// </summary>
	public string RegIP
	{
		set{ this.m_regip = value;}
		get{ return this.m_regip;}
	}

			/// <summary>
	/// 
	/// </summary>
	public string LastIP
	{
		set{ this.m_lastip = value;}
		get{ return this.m_lastip;}
	}
/// <summary>
/// 用户空间配额
/// </summary>
    public long UserQuota
    {
        set { this.m_userquota = value; }
        get { return this.m_userquota; }
    }
    /// <summary>
    /// 用户空间使用
    /// </summary>
    public long QuotaUsed
    {
        set { this.m_quotaused = value; }
        get { return this.m_quotaused; }
    }

    public int Logins
    {
        set;
        get;
    }
    
	#endregion
}
}
